package com.ruoyi.sj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sj.mapper.WqEweiShopMemberAddressMapper;
import com.ruoyi.sj.domain.WqEweiShopMemberAddress;
import com.ruoyi.sj.service.IWqEweiShopMemberAddressService;
import com.ruoyi.common.support.Convert;

/**
 * 收货地址 服务层实现
 * 
 * @author tyc@yanyu.com
 * @date 2018-12-03
 */
@Service
public class WqEweiShopMemberAddressServiceImpl implements IWqEweiShopMemberAddressService 
{
	@Autowired
	private WqEweiShopMemberAddressMapper wqEweiShopMemberAddressMapper;

	/**
     * 查询收货地址信息
     * 
     * @param id 收货地址ID
     * @return 收货地址信息
     */
    @Override
	public WqEweiShopMemberAddress selectWqEweiShopMemberAddressById(Integer id)
	{
	    return wqEweiShopMemberAddressMapper.selectWqEweiShopMemberAddressById(id);
	}
	
	/**
     * 查询收货地址列表
     * 
     * @param wqEweiShopMemberAddress 收货地址信息
     * @return 收货地址集合
     */
	@Override
	public List<WqEweiShopMemberAddress> selectWqEweiShopMemberAddressList(WqEweiShopMemberAddress wqEweiShopMemberAddress)
	{
	    return wqEweiShopMemberAddressMapper.selectWqEweiShopMemberAddressList(wqEweiShopMemberAddress);
	}
	
    /**
     * 新增收货地址
     * 
     * @param wqEweiShopMemberAddress 收货地址信息
     * @return 结果
     */
	@Override
	public int insertWqEweiShopMemberAddress(WqEweiShopMemberAddress wqEweiShopMemberAddress)
	{
	    return wqEweiShopMemberAddressMapper.insertWqEweiShopMemberAddress(wqEweiShopMemberAddress);
	}
	
	/**
     * 修改收货地址
     * 
     * @param wqEweiShopMemberAddress 收货地址信息
     * @return 结果
     */
	@Override
	public int updateWqEweiShopMemberAddress(WqEweiShopMemberAddress wqEweiShopMemberAddress)
	{
	    return wqEweiShopMemberAddressMapper.updateWqEweiShopMemberAddress(wqEweiShopMemberAddress);
	}

	/**
     * 删除收货地址对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteWqEweiShopMemberAddressByIds(String ids)
	{
		return wqEweiShopMemberAddressMapper.deleteWqEweiShopMemberAddressByIds(Convert.toStrArray(ids));
	}
	
}
